import request from '@/utils/request'

export function confirmOrder(data) {
  return request({
    url: '/order/confirm_order',
    method: 'post',
    data: data
  })
}

export function detail(data) {
  return request({
    url: '/order/mem_order_detail',
    method: 'get',
    params: data
  })
}

export function chooseAddress(data) {
  return request({
    url: '/order/choose_address',
    method: 'post',
    data: data
  })
}

export function useJf(data) {
  return request({
    url: '/order/use_jf',
    method: 'post',
    data: data
  })
}

export function changeExpress(data) {
  return request({
    url: '/order/choose_express_type',
    method: 'post',
    data: data
  })
}

export function isSetPay(data) {
  return request({
    url: '/user/is_pay_password',
    method: 'get',
    params: data
  })
}

export function pay(data) {
  return request({
    url: '/order/check_mem_pay',
    method: 'post',
    data: data
  })
}

export function cancel(data) {
  return request({
    url: '/order/cancel_mem_order',
    method: 'post',
    data: data
  })
}

export function accepter(data) {
  return request({
    url: '/order/accepter_mem_order',
    method: 'post',
    data: data
  })
}

export function oederList(data) {
  return request({
    url: '/order/list',
    method: 'get',
    params: data
  })
}
